import { merge } from 'lodash-es';
import authorization from './Authorization.json';
import baseJson from './Base.json';
import { FormToken } from './Org';
import userJson from './User.json';
import userRoleJson from './UserRole.json';

const baseLangs = [
  baseJson,
  userJson,
  userRoleJson,
  authorization,
  FormToken,
];

export function getLangJson() {
  let langJson = {};
  for (const baseLang of baseLangs) {
    langJson = merge(langJson, baseLang);
  }
  return langJson;
}
